//
//  main.cpp
//  C++ Practice
//
//  Created by Zachary Brody on 11/25/13.
//  Copyright (c) 2013 Zachary Brody. All rights reserved.
//

#include <iostream>
#include <string>

using namespace std;

int value (string inputString)
{
    int totalVal = 0;
    for (int i = 0; i < inputString.length(); i++) {
        totalVal += (int)inputString[i];
    }
    return totalVal;
}

string toUpperCase (string inputString)
{
    std::string NewString = "";
    for (int i = 0; i < inputString.length(); i++) {
        NewString.append(toupper(inputString[i]));
    }
    return inputString;
}

int main(int argc, const char * argv[])
{
    // insert code here...
    string name;
    cout << "What is your name?\n";
    cin >> name;
    if(name == "Zack")
    {
        cout << "I love your name, " + name;
    } else {
        cout << "I hate your name, " + name;
    }
    cout << "\n" + toUpperCase(name);
    
    cout << "\n";
    return 0;
}

